import service from "@/request/index";
interface loginData{
    doctorAccount:string,
    doctorPassword:string
}

interface registerData{
    doctorName:string,
    doctorPassword:string,
    checkPassword:string,
    department:string
}



export function login(data:loginData){
    return service({
        url:'/doctor/login',
        method:'post',
        data
    })
}

export function register(data:registerData){
    return service({
        url:'/doctor/register',
        method:'post',
        data
    })
}
